/**
 * 查询对象类型
 */
export interface TopicQuery extends PageQuery {
  title?: string;
  is_hid?: number;
}

/**
 * 分页对象
 */
export interface TopicPage {
  id?: number;
  title?: string;
  grade_id?: string;
  type?: number;
  score?: number;
  difficulty_rate?: number;
  subject_title?: string;
  type_d?: string;
  is_hid?: number;
  sort?: number;
  created_at?: Date;
}

/**
 * 表单类型
 */
export interface TopicForm {
  id?: number;
  title?: string;
  subject_id?: number;
  grade_id?: string;
  type?: number;
  score?: number;
  difficulty_rate?: number;
  explain_content?: string;
  answer?: string;
  is_right?: number;
  sort?: number;
  is_hid?: number;
  options?: TopicSelectOptions[];
}

export interface TopicOptions {
  value?: number;
  label?: string;
}

export interface TopicSelectOptions {
  title?: number;
  topic_id?: number;
  is_right?: [];
}
